<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--     <div class="form-group">
        <label for="c-acount" class="control-label col-xs-12 col-sm-2">{:__('Acount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-acount" data-rule="required" class="form-control" name="row[acount]" type="text" value="{$row.acount}">
        </div>
    </div> -->
	{if condition="($row.filenum == 0) and ( $row.filecapacity == 0)" }
		<div class="form-group">
			<label for="c-instumentname" class="control-label col-xs-12 col-sm-2">{:__('Instumentname')}:</label>
			<div class="col-xs-12 col-sm-8">
				<!-- <input id="c-instumentname" data-rule="required" class="form-control" name="row[instumentname]" type="text" value="{$row.instumentname}"> -->
				<input id="c-instumentname" data-rule="required" class="form-control selectpage" data-source="/admin/filedata/insnames" name="row[instumentname]" type="text" value="{$row.instumentname}" data-select-only="true"> 
			</div>
		</div>
		<div class="form-group">
			<label for="c-instumenttype" class="control-label col-xs-12 col-sm-2">{:__('Instumenttype')}:</label>
			<div class="col-xs-12 col-sm-8">
				<!-- <input id="c-instumenttype" data-rule="required" class="form-control" name="row[instumenttype]" type="text" value="{$row.instumenttype}"> -->
				<select id="c-instumenttype" data-rule="required;xxx" data-rule-xxx="[/^[A-Za-z0-9]+$/, '{:__('Please Choice Instument Style')}']" class="form-control" name="row[instumenttype]">
					<option value="{$row.instumenttype}" selected>{$row.instumenttype}</option>
				</select>
			</div>
		</div>
	{else /}	
		<div class="form-group">
			<label for="c-instumentname" class="control-label col-xs-12 col-sm-2">{:__('Instumentname')}:</label>
			<div class="col-xs-12 col-sm-8">
				<!-- <input id="c-instumentname" data-rule="required" class="form-control" name="row[instumentname]" type="text" value="{$row.instumentname}"> -->
				<input id="c-instumentname" data-rule="required" class="form-control selectpage" data-source="/admin/filedata/insnames" name="row[instumentname]" type="text" value="{$row.instumentname}" data-select-only="true" disabled> 
			</div>
		</div>
		<div class="form-group">
			<label for="c-instumenttype" class="control-label col-xs-12 col-sm-2">{:__('Instumenttype')}:</label>
			<div class="col-xs-12 col-sm-8">
				<input id="c-instumenttype" data-rule="required" class="form-control" name="row[instumenttype]" type="text" value="{$row.instumenttype}" disabled> 
				
			</div>
		</div>	
	{/if}
    <div class="form-group">
        <label for="c-instumentsno" class="control-label col-xs-12 col-sm-2">{:__('Instumentsno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-instumentsno" data-rule="required" class="form-control" name="row[instumentsno]" type="text" value="{$row.instumentsno}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-projectname" class="control-label col-xs-12 col-sm-2">{:__('Projectname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-projectname" data-rule="required" class="form-control" name="row[projectname]" type="text" value="{$row.projectname}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-filenum" class="control-label col-xs-12 col-sm-2">{:__('Filenum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-filenum" data-rule="required" class="form-control" name="row[filenum]" type="number" value="{$row.filenum}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-filecapacity" class="control-label col-xs-12 col-sm-2">{:__('Filecapacity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-filecapacity" data-rule="required" class="form-control" name="row[filecapacity]" type="number" value="{$row.filecapacity}">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-datasource" class="control-label col-xs-12 col-sm-2">{:__('Datasource')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-datasource" data-rule="required" class="form-control" name="row[datasource]" type="text" value="{$row.datasource}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-datafiles" class="control-label col-xs-12 col-sm-2">{:__('Datafiles')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-datafiles" data-rule="required" class="form-control" size="50" name="row[datafiles]" type="text" value="{$row.datafiles}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-datafiles" class="btn btn-danger plupload" data-input-id="c-datafiles" data-multiple="true"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-datafiles" class="btn btn-primary fachoose" data-input-id="c-datafiles" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-datafiles"></span>
            </div>
            
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-refreshtime" class="control-label col-xs-12 col-sm-2">{:__('Refreshtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refreshtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[refreshtime]" type="text" value="{$row.refreshtime|datetime}">
        </div>
    </div>
    {if condition=" $showFiveMemoColumn "}
    <div class="form-group">
        <label for="c-field1" class="control-label col-xs-12 col-sm-2">{:__('Field1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field1" data-rule="required" class="form-control" name="row[field1]" type="text" value="{$row.field1}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field2" class="control-label col-xs-12 col-sm-2">{:__('Field2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field2" data-rule="required" class="form-control" name="row[field2]" type="text" value="{$row.field2}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field3" class="control-label col-xs-12 col-sm-2">{:__('Field3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field3" data-rule="required" class="form-control" name="row[field3]" type="text" value="{$row.field3}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field4" class="control-label col-xs-12 col-sm-2">{:__('Field4')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field4" data-rule="required" class="form-control" name="row[field4]" type="text" value="{$row.field4}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field5" class="control-label col-xs-12 col-sm-2">{:__('Field5')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field5" data-rule="required" class="form-control" name="row[field5]" type="text" value="{$row.field5}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-state" class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
